from api.login import login
# 测试数据
test_data = [
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"}
]
# 测试登录函数：调用登录函数
# 列表获取元素
for i in test_data:
    phone = i["username"]
    res = login(phone)
    if phone == "13488888888":
        assert "账号正确" == res
        #assert "账号错误" == res